package com.codingfuture.mapper;

import com.codingfuture.entity.Course;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CourseMapper {
//    @Select("select * from course")
    List<Course> findAll();

    @Insert("insert into course (name)" +
            "values (#{name})")
    int insert(Course course);
}
